﻿#region 命名空间

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Ext.Net;
using Ext.Net.MVC;
using Sharp.Infrastructure;

#endregion

namespace Sharp.Web.Models
{
    public class MasterDataIndexModel : IViewModel
    {
        public Guid Id { get; set; }


        /// <summary>
        ///     代码
        /// </summary>
        /// <value>代码</value>
        [Display(Name = "代码")]
        public string Code { get; set; }

        /// <summary>
        ///     名称
        /// </summary>
        /// <value>名称</value>
        [Display(Name = "名称"), Column(Width = 150)]
        public string Name { get; set; }

        /// <summary>
        ///     父Id
        /// </summary>
        /// <value>父Id</value>
        [Display(Name = "父Id")]
        public string ParentId { get; set; }

        /// <summary>
        ///     全称
        /// </summary>
        [Display(Name = "全称"), Column(Width = 300)]
        public string FullName { get; set; }

        /// <summary>
        ///     简称
        /// </summary>
        [Display(Name = "简称"), Column(Width = 100)]
        public string Abbreviation { get; set; }


        /// <summary>
        ///     左边树形菜单
        /// </summary>
        public Node LeftTree { get; set; }

        public IList<MasterDataIndexModel> DropDown { get; set; }
        /// <summary>
        /// 组件限定名称
        /// </summary>
        public string AssemblyQualifiedName { get; set; }
    }
}